<?php
/*
 * 获取用户信息控制器
 */
namespace Api\Controller;
use  Think\Controller;

class UserController extends CommonController {
	public function getuser (){
		$id = I('uid');
		if(!$id){
			return apiShow('no userid',404);
		}
		$userInfo = D('Admin')->getUserById($id);
		if($userInfo){
			unset($userInfo['password']);
			return apiShow('success',200,$userInfo);
		}
		return apiShow('没有找到数据',404);
	}
	

}
